Q3BoundingSphere_Set
You can use theQ3BoundingSphere_Set
function to set the defining origin and radius of a bounding sphere.
TQ3BoundingSphere *Q3BoundingSphere_Set ( TQ3BoundingSphere *bSphere, const TQ3Point3D *origin, float radius, TQ3Boolean isEmpty);
bSphere
- A pointer to a bounding sphere.
origin
- A pointer to a three-dimensional point.
radius
- A floating-point value that specifies the desired radius of the bounding sphere.
isEmpty
- A Boolean value that indicates whether the specified bounding sphere is empty (
kQ3True
) or not (kQ3False
).DESCRIPTION
TheQ3BoundingSphere_Set
function assigns the valuesorigin
andradius
to theorigin
andradius
fields of the bounding sphere specified by thebSphere
parameter.Q3BoundingSphere_Set
also assigns the value of theisEmpty
parameter to theisEmpty
field of the bounding sphere.